package com.wm.blog_admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wm.blog_admin.domain.TButtonPermissionDO;
import com.wm.blog_admin.mapper.TButtonPermissionMapper;
import com.wm.blog_admin.query.TButtonPermissionQuery;
import com.wm.blog_common.base.BaseDAO;
import com.wm.blog_common.bean.QueryPage;
import com.wm.blog_common.entity.TButtonPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
 * <p>
 * 按钮权限表 服务DAO层
 * </p>
 *
 * @author wm_yu
 * @since 2020-05-28
 */
@Repository
public class TButtonPermissionDAO extends BaseDAO<TButtonPermissionMapper, TButtonPermission> {

    @Autowired
    private TButtonPermissionMapper tButtonPermissionMapper;
    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    public Page<TButtonPermissionDO> pageList(QueryPage page, TButtonPermissionQuery query) {
       return  tButtonPermissionMapper.pageList(page,query);
    }
}

